import { createApp } from 'vue'
import App from './App.vue'

//引入element-plus组件库
import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'

//引入全局reset.scss
import '@/styles/index.scss'

//配置element-plus国际化
//@ts-ignore
import zhCn from 'element-plus/es/locale/lang/zh-cn'

//svg插件需要配置代码
import 'virtual:svg-icons-register';
import gloalComponent from '@/components'

//引入路由
import router from './router'

//引入pinia
import pinia from './store'

//引入路由守卫
import './permission'

const app = createApp(App)

app.use(ElementPlus,{locale: zhCn,})


app.use(gloalComponent)
app.use(router)
app.use(pinia)

app.mount('#app')

